package cn.chencaiju.day02;

public class FlowControllerTest2 {
	public static void main(String[] args) {
		float a=1,b=-4,c=3;
		float temp=(float) (Math.pow(b, 2)-4*a*c);
		if(temp<0) {
			System.out.println("方程无解！");
			return;
		}else {
			float x1=(float) ((-b+Math.sqrt(temp))/(2*a));
			float x2=(float) ((-b-Math.sqrt(temp))/(2*a));
			System.out.println("方程解x1="+x1+" x2="+x2);
		}		
	}
}
